@extends('master')
@section('name', 'Login')
@section('content')
    <div class="container col-md-6 col-md-offset-3">
        <div class="card mt-5">
            <div class="card-header">
                <h5 class="float-left">{{ trans('corebg.login') }}</h5>
            </div>
            <div class="card-body">
                <form class="form-horizontal" method="post">
                    @include('shared.error-messages')
                    @include('shared.flash-messages')
                    {{ csrf_field() }}
                    <div class="form-group">
                        <label for="email" class="col-lg-12 control-label">{{ trans('corebg.email') }}</label>
                        <div class="col-lg-12">
                            <input type="email" class="form-control" id="email" name="email" value="{{ old('email') }}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="password" class="col-lg-12 control-label">{{ trans('corebg.password') }}
                        </label>
                        <div class="col-lg-12">
                            <input type="password" class="form-control" name="password">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="select" class="col-lg-12 control-label">{{ trans('corebg.locale') }}</label>
                        <div class="col-lg-12">
                            <select class="form-control" id="locale" name="locale">
                                @foreach($locales as $key => $locale)
                                    <option value="{{ $locale['code'] }}" @if($locale['code']==$fullLocale) selected="selected" @endif >{{ $locale['name'] }}</option>
                                @endforeach
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-10 col-lg-offset-2">
                            <button type="submit" class="btn btn-primary">{{ trans('corebg.user.login') }}</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
@endsection
